//
//  RecommendationMaskController.m
//  bluetooth
//
//  Created by 中亿世联前台 on 15/7/14.
//  Copyright (c) 2015年 switch. All rights reserved.
//

#import "RecommendationMaskController.h"
#import "UIViewAdditions.h"
#import "WeatherView.h"
#import "TodayRecommendedView.h"

@interface RecommendationMaskController ()

@end

@implementation RecommendationMaskController

- (void)viewDidLoad {
    [super viewDidLoad];
    [self createUI];
}


- (void)createUI{

    //天气view
    WeatherView *weatherView = [[[NSBundle mainBundle] loadNibNamed:@"1111RecommendationMask" owner:self options:nil] objectAtIndex:0];
    weatherView.frame = CGRectMake(20, 40, SCREEN_WIDTH-40, SCREEN_HEIGHT/3+20);
    [self.view addSubview:weatherView];
    
    //今日推荐
    TodayRecommendedView *todeyRecommendedView = [[[NSBundle mainBundle] loadNibNamed:@"1111RecommendationMask" owner:self options:nil] objectAtIndex:1];
    todeyRecommendedView.frame = CGRectMake(20, weatherView.bottom +20, SCREEN_WIDTH-40,SCREEN_HEIGHT-weatherView.frame.size.height - 80);
    [self.view addSubview:todeyRecommendedView];
}


@end
